 <%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="frmActualizarCheckListProcedimiento.aspx.cs" Inherits="SGC.Web.ModuloCalidad.Mantenimientos.frmActualizarCheckListProcedimiento" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <script src="../../Utilitarios/Js/scripts.js" type="text/javascript"></script>
    <script src="/Utilitarios/Js/jquery-ui-1.10.3.custom.js" type="text/javascript"></script>
    <link rel="stylesheet" href="/Utilitarios/Css/ui-lightness/jquery-ui-1.10.3.custom.min.css" />
    <script type="text/javascript">
        $(document).ready(function () {
            $('#ctl00_MainContent_btn_Agregar').click(function () {
                if ($('#ctl00_MainContent_txt_ValorEsperado').val() == "") {
                    alert('Por favor, ingrese el valor esperado.');
                    $('#ctl00_MainContent_txt_ValorEsperado').focus();
                    return false;
                }

            });
        });
    </script>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>    
    <div>
        <asp:UpdatePanel ID="up_Auditores" runat="server">
            <ContentTemplate>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Label ID="Label11" runat="server" Font-Size="18pt" Style="text-align: center"
                    Text="Actualizar CheckList de Procedimiento Auditoría"></asp:Label>
                <br />
                <table border="0">
                    <tr>
                        <td style="width: 179px">
                            <asp:Label ID="Label1" runat="server" Text="Proceso : "></asp:Label>
                        </td>
                        <td style="width: 708px" colspan="3">
                            <asp:TextBox ID="txt_CodigoProceso" runat="server" ReadOnly="True" Width="89px"></asp:TextBox>
                            &nbsp;
                            <asp:TextBox ID="txt_DescripProceso" runat="server" ReadOnly="True" Width="89px"></asp:TextBox>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 179px">
                            <asp:Label ID="Label2" runat="server" Text="Procedimiento : "></asp:Label>
                        </td>
                        <td style="width: 708px" colspan="3">
                            <asp:DropDownList ID="ddl_Procedimientos" runat="server" Height="16px" Width="358px"
                                AutoPostBack="True" OnSelectedIndexChanged="ddl_Procedimientos_SelectedIndexChanged">
                            </asp:DropDownList>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4">
                            <fieldset>
                                <legend>Seleccionar CheckList</legend>
                                <table border="0" width="100%">
                                    <tr>
                                        <td style="width: 10%">
                                            <asp:Label Text="CheckList" runat="server" ID="lblTitCheckList" />
                                        </td>
                                        <td style="width: 45%">
                                            <asp:TextBox ID="txt_Buscar" runat="server" Width="100%"></asp:TextBox>
                                        </td>
                                        <td valign="middle">
                                            &nbsp;&nbsp;<asp:Button ID="btn_buscar" runat="server" CssClass="boton" Text="Buscar"
                                                OnClick="btn_buscar_Click" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                        </td>
                                        <td style="width: 80%">
                                            <asp:GridView ID="gv_CheckLists" runat="server" AutoGenerateColumns="False" BackColor="White"
                                                BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Horizontal"
                                                Width="765px">
                                                <AlternatingRowStyle BackColor="#F7F7F7" />
                                                <Columns>
                                                    <asp:TemplateField HeaderText="Líder">
                                                        <ItemTemplate>
                                                            <asp:RadioButton ID="rb_ElegirCheck" runat="server" AutoPostBack="True" OnCheckedChanged="rb_ElegirAuditor_CheckedChanged"
                                                                onclick="javascript:GridSelection(this);" />
                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="50px" />
                                                    </asp:TemplateField>
                                                    <asp:BoundField DataField="IDCHECKLIST" HeaderText="Código" />
                                                    <asp:BoundField DataField="DESCRIPCION" HeaderText="Descripción" />
                                                </Columns>
                                                <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                                                <HeaderStyle CssClass="TDHead" Font-Bold="True" />
                                                <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
                                                <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
                                                <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
                                                <SortedAscendingCellStyle BackColor="#F4F4FD" />
                                                <SortedAscendingHeaderStyle BackColor="#5A4C9D" />
                                                <SortedDescendingCellStyle BackColor="#D8D8F0" />
                                                <SortedDescendingHeaderStyle BackColor="#3E3277" />
                                            </asp:GridView>
                                        </td>
                                        <td>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label Text="Valor esperado" runat="server" ID="lbl_TitValor" />
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txt_ValorEsperado" runat="server" Width="168px"></asp:TextBox>
                                            &nbsp;&nbsp;
                                            <asp:Button ID="btn_Agregar" runat="server" CssClass="boton" OnClick="btn_Agregar_Click"
                                                Text="Agregar" />
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                    </tr>
                                </table>
                            </fieldset>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 179px;" valign='top'>
                            <asp:Label ID="lbl_TitCheckListRegistrado" runat="server" Text="CheckList Registrado: "></asp:Label>
                        </td>
                        <td colspan="3">
                            <asp:GridView ID="gv_CheckListRegistrado" runat="server" AutoGenerateColumns="False"
                                BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px"
                                CellPadding="3" GridLines="Horizontal" Width="814px">
                                <AlternatingRowStyle BackColor="#F7F7F7" />
                                <Columns>
                                    <asp:TemplateField HeaderText="Líder">
                                        <ItemTemplate>
                                            <asp:RadioButton ID="rb_ElegirCheckSave" runat="server" AutoPostBack="True" OnCheckedChanged="rb_ElegirAuditor_CheckedChanged"
                                                onclick="javascript:GridSelection(this);" />
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="50px" />
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="CODIGO_CHECK" HeaderText="Código" />
                                    <asp:BoundField DataField="DESCRIPCION" HeaderText="Descripción" />
                                    <asp:BoundField DataField="VALOR_ESPERADO" HeaderText="Valor Esperado" />
                                </Columns>
                                <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                                <HeaderStyle CssClass="TDHead" Font-Bold="True" />
                                <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
                                <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
                                <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
                                <SortedAscendingCellStyle BackColor="#F4F4FD" />
                                <SortedAscendingHeaderStyle BackColor="#5A4C9D" />
                                <SortedDescendingCellStyle BackColor="#D8D8F0" />
                                <SortedDescendingHeaderStyle BackColor="#3E3277" />
                            </asp:GridView>
                        </td>
                        <td valign="bottom">
                            <asp:Button ID="btn_Eliminar" runat="server" CssClass="boton" Text="Eliminar" OnClick="btn_Eliminar_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            <asp:Button ID="btn_Salir" runat="server" CssClass="boton" Text="Salir" OnClick="btn_Salir_Click" />
                        </td>
                        <td>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="up_Auditores">
            <ProgressTemplate>
                . . . procesando . . .
            </ProgressTemplate>
        </asp:UpdateProgress>
    </div>
</asp:Content>
